﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using ZFGK.ComponentModels;
using ZFGK.WinForms.Controls.PropertyGrid;
using OSS.BIM.Model;

namespace OSS.BIM.UI.PropertyGrids
{
    class ModelGropeBinding
    {
        /// <summary>
        /// 分组
        /// </summary>
        [Browsable(false)]
        public ModelGrope ModelGrope { get; set; }

        public ModelGropeBinding(ModelGrope userGroup)
        {
            ModelGrope = userGroup;
        }

        [SortedCategory("基本", 1)]
        [DisplayName("名称")]
        [Description("名称")]
        [Browsable(true)]
        [ReadOnly(false)]
        public string GroupName
        {
            get { return ModelGrope.Name; }
            set { ModelGrope.Name = value; }
        }
    }
}
